home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS0398.lzh
/
AMOSLIST
/
000138_amos-request@svcs1.digex.net_Fri Mar 13 20:15:42 1998.msg
< prev
next >
Wrap
Text File
|
1998-04-01
|
4KB
|
92 lines
>From amos-request@svcs1.digex.net Fri Mar 13 20:15:42 1998
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id UAA03550
for <mcox@access.digex.net>; Fri, 13 Mar 1998 20:15:42 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id OAA18831
for amos-out; Fri, 13 Mar 1998 14:37:23 -0500 (EST)
Received: from pony-1.mail.digex.net (pony-1.mail.digex.net [204.91.241.5])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id OAA18828
for <amos-list@svcs1.digex.net>; Fri, 13 Mar 1998 14:37:22 -0500 (EST)
Received: from mailhost.sosbbs.com (sosbbs.com [204.186.168.100])
by pony-1.mail.digex.net (8.8.8/8.8.8) with SMTP id OAA12793
for <amos-list@access.digex.net>; Fri, 13 Mar 1998 14:37:18 -0500 (EST)
Received: from default (204.186.168.60) by mailhost.sosbbs.com
(EMWAC SMTPRS 0.81) with SMTP id <B0000232884@mailhost.sosbbs.com>;
Fri, 13 Mar 1998 14:33:23 -0500
Message-ID: <B0000232884@mailhost.sosbbs.com>
From: "Garfield Benjamin" <gbenjam@sosbbs.com>
To: "AMOS MAILING LIST" <amos-list@access.digex.net>
Subject: Re: extension? Phew!! DIE THREAD DIE!!
Date: Fri, 13 Mar 1998 14:48:51 -0500
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Status: O
X-Status:
>> If AGE<10
>> Print "You are less than 10 years old."
>> else if AGE=21
>> Print "Hey!! Now you can drink alcohol in the U.S.!!"
>> else
>> Print "WOW, you're OVER 21!!"
>> endif
>> Well, problem is this won't work.
> Yes it will. I tried it.
Very strange as I just tried it as well and AMOS gives an error
(missing End If) just as I suspected!! The only thing I can
assume is that you and Keith are using AMOS Pro which must
have changed things a bit. In AMOS v1.36 it will NOT work.
> The logic is the same too. Select..is just
> more advanced in that it offers some extra features.
The logic is NOT the same. Look at the above code again. This
will print "WOW, you're over 21!!" as long as AGE is greater than
9 and unequal to 21...
>>If AGE<10
>> Print "You are less than 10 years old."
>>Else If AGE=21
>> Print"Hey!! Now you can drink alcohol in the U.S.!!"
>> Else If AGE>21
>> Print "WOW, you'r OVER 21!!"
>> End If
>> End If
>>End If
> That would trigger the error-system. One if and three end-ifs is
> plain wrong.
Try it... it works fine. Look at the source, there ARE three Ifs.
It's the only way you can do it in AMOS v1.36 to use the style
you suggested.
> That being said, this might be a bit clearer (arguably the "best"
> method for AMOS) but it still lacks when compared to the
> Select...Case style. Anyway, the point is you are still looking at
> the same two basic methods, the If...End If and the If...Else...EndIf
> Yes but does it really matter? The result is what is importand
> and the if... else if... else end if... structure is quite close to
> the select.. syntax.
Of course not. Actually, I don't even know what we're debating
here!! I was simply responding to the VB-guy's post about
Select...Case. In the end, it doesn't matter to me: I'll use If...
EndIf, If...Else...EndIf, as it's six one way and half a dozen the
other, but the whole point of this thread was that it might be
nice to have support for SELECT...CASE in AMOS. :-)
Garfield Benjamin e-mail:gbenjam@sosbbs.com
Website( http://www.sosbbs.com/~gbenjam ): 50% Complete